package com.yunxin.core.infra.persistence.mapper.channel;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.channel.ChannelPromotionCustomConfigDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zero°
 * @since 2023-07-17
 */
@DS("core")
@Mapper
public interface ChannelPromotionCustomConfigExtendMapper extends ChannelPromotionCustomConfigMapper {

    /**
     * 根据渠道推广id查询渠道推广客户配置
     * @param promotionId promotionId
     * @return ChannelPromotionCustomConfigDO
     */
    ChannelPromotionCustomConfigDO selectByPromotionId(@Param("promotionId") Long promotionId);


    /**
     * 根据渠道推广code查询渠道推广客户配置
     * @param channelPromotionCode channelPromotionCode
     * @return ChannelPromotionCustomConfigDO
     */
    ChannelPromotionCustomConfigDO selectByChannelPromotionCode(@Param("channelPromotionCode") String channelPromotionCode);
}
